package com.chatopera.cc.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "application")
public class ApplicationProperties {

    private String securityPassword;
    private Modules modules = new Modules();

    public String getSecurityPassword() {
        return securityPassword;
    }

    public void setSecurityPassword(String securityPassword) {
        this.securityPassword = securityPassword;
    }

    public Modules getModules() {
        return modules;
    }

    public void setModules(Modules modules) {
        this.modules = modules;
    }

    public static class Modules {
        private boolean contactsEnable = true;
        private boolean ccaEnable = true;
        private boolean entimEnable = true;
        private boolean reportEnable = true;

        public boolean getContactsEnable() {
            return contactsEnable;
        }

        public void setContactsEnable(boolean contactsEnable) {
            this.contactsEnable = contactsEnable;
        }

        public boolean getCcaEnable() {
            return ccaEnable;
        }

        public void setCcaEnable(boolean ccaEnable) {
            this.ccaEnable = ccaEnable;
        }

        public boolean getEntimEnable() {
            return entimEnable;
        }

        public void setEntimEnable(boolean entimEnable) {
            this.entimEnable = entimEnable;
        }

        public boolean getReportEnable() {
            return reportEnable;
        }

        public void setReportEnable(boolean reportEnable) {
            this.reportEnable = reportEnable;
        }
    }

}
